#ifndef GLIBINIT_INCLUDED
#define GLIBINIT_INCLUDED

#include <glib.h>
#include <glib-object.h>

static class CGLibInit
{
public:
  CGLibInit()
  {
    /* glib type init */
    g_type_init();

    /* glib thread init */
#if GLIB_CHECK_VERSION(2, 32, 0)
#else
    if(!g_thread_supported())
      g_thread_init(NULL);
#endif
  }
} s_GLibStarter;

#endif // GLIBINIT_INCLUDED
